import request from "@/services/request.ts";
export const ProductList = async (oid:string)=>{
    return request.get('/product',{oid})
}

export const ProductCreate = async (data:CategoryForm)=>{
    return request.post('/product',data)
}

export const ProductUpdate = async (id:string,data:CategoryForm)=>{
    return request.put(`/product/${id}`,data)
}

export const ProductDelete = async (id:string)=>{
    return request.del(`/product/${id}`)
}